package com.zl.pro.mapper;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zl.pro.pojo.OrderDetails;
@Mapper
public interface OrderDetailsMapper {
   /* int deleteByPrimaryKey(Long orderdetailid);

    int insert(OrderDetails record);

    int insertSelective(OrderDetails record);

    OrderDetails selectByPrimaryKey(Long orderdetailid);

    int updateByPrimaryKeySelective(OrderDetails record);

    int updateByPrimaryKey(OrderDetails record);*/
	//添加订单的同时添加订单详情
	void addOrderDetails(OrderDetails orderDetails);
	  //根据订单号orderid查询订单详情
    OrderDetails findOrderDetails(String orderid);
    //根据订单号修改订单详情信息
    void updateOrderDetails(@Param("orderid") String orderid,@Param("fundunitprice") BigDecimal fundunitprice,@Param("fundnum") BigDecimal fundnum);
  //根据订单号修改订单详情信息
    void updateOrderDetails2(@Param("orderid") String orderid,@Param("fundunitprice") BigDecimal fundunitprice,@Param("orderamount") BigDecimal orderamount,@Param("handingfee") BigDecimal handingfee);
}